package com.yeyks.app.controller.base.vip;


import com.yeyks.common.ajax.AjaxResponseBody;
import com.yeyks.commonReference.service.vip.MemberCardEnableOrderService;
import com.yeyks.vip.param.MemberCardEnableOrderPlaceAnOrderParam;
import com.yeyks.vip.vo.MemberCardEnableOrderPlaceAnOrderVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * vip卡支付订单表 前端控制器
 * </p>
 *
 * @author yun
 * @since 2019-08-07
 */
@Api(tags = "vip卡支付订单", description = "vip卡支付订单")
@RestController
@RequestMapping("/vip/memberCardEnableOrder")
public class MemberCardEnableOrderController {

    @Autowired
    private MemberCardEnableOrderService memberCardEnableOrderService;

    // v3.6
    @ApiOperation(value = "下单:v3.6")
    @RequestMapping(value = "/placeAnOrder", method = RequestMethod.POST)
    public AjaxResponseBody<MemberCardEnableOrderPlaceAnOrderVo> placeAnOrder(@Validated MemberCardEnableOrderPlaceAnOrderParam param) {
        MemberCardEnableOrderPlaceAnOrderVo vo = memberCardEnableOrderService.placeAnOrder(param);
        return AjaxResponseBody.success(vo);
    }

}
